export const tableOption = {
    border: true,
    index: true,
    indexLabel: '序号',
    menuAlign: 'center',
    align: 'center',
    column: [
        {
            fixed: true,
            label: '用户名',
            prop: 'userName',
            editDisabled: true,
            search: true,
            span: 24,
            rules: [
                {
                    required: true,
                    message: '请输入用户名'
                },
                {
                    min: 3,
                    max: 20,
                    message: '长度在 3 到 20 个字符',
                    trigger: 'blur'
                }
                // {validator: validateUsername, trigger: 'blur'}
            ]
        },
        {
            label: '所属部门',
            prop: 'deptId',
            slot: true,
            formslot: true,
            span: 24,
            hide: true,
            rules: [{
                required: true,
                message: '请选择部门',
                trigger: 'blur'
            }]
        },
        {
            fixed: true,
            label: '部门',
            prop: 'deptName',
            addDisplay: false,
            span: 24,
            overHidden: true,
            editDisplay: false,
            rules: [
                // {validator: validateUsername, trigger: 'blur'}
            ]
        },
        {
            label: '手机号',
            prop: 'phone',
            type: 'phone',
            value: '',
            span: 24,
            rules: [{
                min: 6,
                max: 20,
                message: '长度在 11 个字符',
                trigger: 'blur'
            }]
        },
        {
            label: '密码',
            prop: 'password',
            type: 'password',
            value: '',
            hide: true,
            span: 24,
            rules: [{
                min: 6,
                max: 20,
                message: '长度在 6 到 20 个字符',
                trigger: 'blur'
            }]
        },
        {
            label: '角色',
            prop: 'roles',
            slot: true,
            formslot: true,
            overHidden: true,
            span: 24,
            rules: [{
                required: true,
                message: '请选择角色',
                trigger: 'blur'
            }]
        },
        {
            label: '状态',
            prop: 'lockFlag',
            type: 'select',
            span: 24,
            rules: [{
                required: true,
                message: '请选择状态',
                trigger: 'blur'
            }],
            dicData: [{
                label: '有效',
                value: '0'
            }, {
                label: '锁定',
                value: '1'
            }]
        }, {
            width: 250,
            label: '创建时间',
            prop: 'createTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            addDisplay: false,
            editDisplay: false,
            span: 24
        },
        {
            width: 250,
            label: '更新时间',
            prop: 'updateTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            addDisplay: false,
            editDisplay: false,
            span: 24
        }]
}
